package cn.itcast.utils;



import cn.itcast.domain.Weibo;

import java.util.List;

public class FaceFormat {
	public static List<Weibo> formt(List<Weibo> list) {
		if (list != null) {
			for (int i = 0; i < list.size(); i++) {
				String body = list.get(i).getBody();
				String replaceAll = body.replaceAll("\\[@", "<img src=\"gif/");
				String all = replaceAll.replaceAll("@\\]", ".gif\"" + ">");
				list.get(i).setBody(all);
			}
		}
		return list;
	}

}

